package crm.model.teacherPC.bannedList;

public abstract class Bann implements Comparable {
	
	public abstract String getName();
	public abstract boolean getEnable();
	public abstract void setName(String name);
	public abstract void setEnable(boolean b);
	
	public int compareTo(Object o) {
		Bann b = (Bann)o;
		if ((b.getEnable() & getEnable()) || (!b.getEnable() && !getEnable())){
			return 0;
		}else if (b.getEnable() & !getEnable()){
			return -1;
		}else if (!b.getEnable() & getEnable()){
			return 1;
		}
		return 0;
	}
}
